package com.bmd.backgroundmanger.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

/**
 * 系统公告实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("announcements")
@Schema(name = "Announcement", description = "系统公告实体类")
public class Announcement implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "公告ID")
    @TableId(value = "announcement_id", type = IdType.AUTO)
    private Integer announcementId;

    @Schema(description = "公告标题")
    private String title;

    @Schema(description = "公告内容")
    private String content;

    @Schema(description = "发布时间")
    private LocalDateTime publishTime;

    @Schema(description = "创建人")
    private Integer createBy;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "修改人")
    private Integer updateBy;

    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
} 